<tem>
<!-- 防火墙修改模板 -->
<div class="template" id="firewall_update_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form" id="update_form">
			<div style="padding:15px; height:auto;">
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">防火墙名称</label>
					<div class="col-lg-8">
						<input type="hidden" name="fwId" data-id="fwId">
						<input type="text" class="form-control input-sm" data-id="fwName" validate="required"/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">防火墙版本</label>
					<div class="col-lg-8">
						<!-- <input type="text" class="form-control input-sm" data-id="fwVersion" validate="required"/> -->
						<select class="form-control input-sm" data-id="fwVersion" validate="required">
							<option value="">-----</option>
							<option value="topsec">天融信防火墙</option>
							<option value="neteye">东软防火墙</option>
						</select>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">通信方式</label>
					<div class="col-lg-8">
						<select class="form-control input-sm" data-id="loginType" validate="required">
							<option value="1">ssh2</option>
						</select>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">IP</label>
					<div class="col-lg-8">
						<input type="text" class="form-control input-sm" data-id="ip" validate="required,IP"/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">端口</label>
					<div class="col-lg-8">
						<input type="text" class="form-control input-sm" data-id="port" validate="required,port"/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">用户</label>
					<div class="col-lg-8">
						<input type="text" class="form-control input-sm" data-id="loginName" validate="required"/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">密码</label>
					<div class="col-lg-8">
						<input type="password" class="form-control input-sm" data-id="passWord" validate="required"/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">登陆提示符</label>
					<div class="col-lg-8">
						<input type="text" class="form-control input-sm" data-id="loginPrompt" validate="required"/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-lg-3 control-label tr">超级提示符</label>
					<div class="col-lg-8">
						<input type="text" class="form-control input-sm" data-id="suPromot" validate="required"/>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

<!-- 策略 -->
<div class="template" id="policy_list_template">
	<div class="panel-body no-tb-padder" style="padding-top: 0;">
		<div class="table-div-outer">
			<div class="table-oper" id="table_oper_ip">
				<a href="javascript:void(0);" id="policy_add_btn" class="bgblue">
					<i class="btn-commen add-btn"></i>
					<span>新增</span>
				</a>
			</div>
			<div id="table_div_policy" class="table-div table-list" style="height: 300px;"></div>
		</div>
	</div>
</div>
<!-- 策略编辑 -->
<div class="template" id="policy_edit_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form">
			<div class="form-group" style="display: none;">
				<label class="col-lg-3 control-label">名称</label>
				<div class="col-lg-8">
					<input type="hidden" data-id="id">
			 		<!-- <input type="text" class="form-control input-sm" data-id="name" validate=""> -->
			 		<label class="col-lg-2 control-label tc p0 pl10">soc_</label>
					<div class="col-lg-9 tl p0 ml5">
						<input type="text" class="form-control input-sm" style="padding-right:10px;" data-id="name" validate="required" name="name">
					</div>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">源IP地址</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="srcAddr" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">源服务(端口)</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="srcPort" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">目的IP地址</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="dstAddr" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">目的服务(端口)</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="dstPort" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">动作</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="action" data-type="select" validate="required">
						<option value="accept">允许</option>
						<option value="deny">拒绝</option>
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">启用</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="enable" data-type="select" validate="required">
						<option value="yes">启用</option>
						<option value="no">停用</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">备注</label>
				<div class="col-lg-8">
			 		<textarea class="form-control input-sm" data-id="comment"></textarea>
				</div>
			</div>
		</form>
	</div>
</div>
<!-- 策略编辑 -->
<div class="template" id="neteye_policy_edit_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form">
			<div class="form-group">
				<label class="col-lg-3 control-label">名称</label>
				<div class="col-lg-8">
					<input type="hidden" data-id="id">
			 		<!-- <input type="text" class="form-control input-sm" data-id="name" validate=""> -->
			 		<label class="col-lg-2 control-label tc p0 pl10">soc_</label>
					<div class="col-lg-9 tl p0 ml5">
						<input type="text" class="form-control input-sm" style="padding-right:10px;" data-id="name" validate="required" name="name">
					</div>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">源IP地址</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="srcAddr" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">目的IP地址</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="dstAddr" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">端口</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="protocolObj" data-type="select" validate="required">
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">动作</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="action" data-type="select" validate="required">
						<option value="permit">允许</option>
						<option value="deny">拒绝</option>
					</select>
				</div>
			</div>
			<div class="form-group">
			    <label class="col-lg-3 control-label tr">启用</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-id="enable" data-type="select" validate="required">
						<option value="enable">启用</option>
						<option value="disable">停用</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">备注</label>
				<div class="col-lg-8">
			 		<textarea class="form-control input-sm" data-id="comment"></textarea>
				</div>
			</div>
		</form>
	</div>
</div>

<!-- IP -->
<div class="template" id="ip_list_template">
	<div class="panel-body no-tb-padder" style="padding-top: 0;">
		<div class="table-div-outer">
			<div class="table-oper" id="table_oper_ip">
				<a href="javascript:void(0);" id="ip_add_btn" class="bgblue">
					<i class="btn-commen add-btn"></i>
					<span>新增</span>
				</a>
			</div>
			<div id="table_div_ip" class="table-div table-list" style="height: 300px;"></div>
		</div>
	</div>
</div>
<!-- Ip编辑 -->
<div class="template" id="ip_edit_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form">
			<div class="form-group">
				<label class="col-lg-3 control-label">名称</label>
				<div class="col-lg-8">
					<input type="hidden" data-id="id">
			 		<!-- <input type="text" class="form-control input-sm" data-id="name" validate="required"> -->
			 		<label class="col-lg-2 control-label tc p0 pl10">soc_</label>
					<div class="col-lg-9 tl p0 ml5">
						<input type="text" class="form-control input-sm" style="padding-right:10px;" data-id="name" validate="required" name="name">
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">IP</label>
				<div class="col-lg-3" style="width:31.7%;padding-right:0">
			        <input type="text" class="form-control input-sm" data-id="ip1" validate="ipv4,required">
		        </div>
		        <div class="col-lg-1 p0" style="width:auto;padding:3px 5px">
		          -
		        </div>
		        <div class="col-lg-3" style="width:31.7%;padding-left:0">
		            <input type="text" class="form-control input-sm" data-id="ip2" validate="ipv4,required">
		        </div>
	        </div>
		</form>
	</div>
</div>

<!-- 服务 -->
<div class="template" id="service_list_template">
	<div class="panel-body no-tb-padder" style="padding-top: 0;">
		<div class="table-div-outer">
			<div class="table-oper" id="table_oper_ip">
				<a href="javascript:void(0);" id="service_add_btn" class="bgblue">
					<i class="btn-commen add-btn"></i>
					<span>新增</span>
				</a>
			</div>
			<div id="table_div_service" class="table-div table-list" style="height: 300px;"></div>
		</div>
	</div>
</div>
<!-- 服务编辑 -->
<div class="template" id="topsec_service_edit_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form">
			<div class="form-group">
				<label class="col-lg-3 control-label">名称</label>
				<div class="col-lg-8">
					<input type="hidden" data-id="id">
			 		<!-- <input type="text" class="form-control input-sm" data-id="name" validate="required"> -->
			 		<label class="col-lg-2 control-label tc p0 pl10">soc_</label>
					<div class="col-lg-9 tl p0 ml5">
						<input type="text" class="form-control input-sm" style="padding-right:10px;" data-id="name" validate="required" name="name">
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">端口</label>
				<div class="col-lg-3" style="width:31.7%;padding-right:0">
			        <input type="text" class="form-control input-sm" data-id="port1" validate="port,required">
		        </div>
		        <div class="col-lg-1 p0" style="width:auto;padding:3px 5px">
		          -
		        </div>
		        <div class="col-lg-3" style="width:31.7%;padding-left:0">
		            <input type="text" class="form-control input-sm" data-id="port2" validate="port,required">
		        </div>
	        </div>
	        <div class="form-group">
				<label class="col-lg-3 control-label">协议</label>
				<div class="col-lg-8">
			 		<select class="form-control input-sm" data-type="select" data-id="protocol">
						<option value="6">TCP</option>
						<option value="17">UDP</option>
					</select>
				</div>
			</div>
	        <div class="form-group">
				<label class="col-lg-3 control-label">备注</label>
				<div class="col-lg-8">
			 		<textarea class="form-control input-sm" data-id="comment"></textarea>
				</div>
			</div>
		</form>
	</div>
</div>

<!-- 服务编辑 -->
<div class="template" id="neteye_service_edit_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form">
			<div class="form-group">
				<label class="col-lg-3 control-label">名称</label>
				<div class="col-lg-8">
					<input type="hidden" data-id="id">
					<label class="col-lg-2 control-label tc p0 pl10">soc_</label>
					<div class="col-lg-9 tl p0 ml5">
						<input type="text" class="form-control input-sm" style="padding-right:10px;" data-id="name" validate="required" name="name">
					</div>
			 		<!-- <input type="text" class="form-control input-sm" data-id="name" validate="required"> -->
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">源端口</label>
				<div class="col-lg-3" style="width:31.7%;padding-right:0">
					<input type="text" class="form-control input-sm" data-id="source_port1" validate="port,required">
				</div>
				<div class="col-lg-1 p0" style="width:auto;padding:3px 5px">
					-
				</div>
				<div class="col-lg-3" style="width:31.7%;padding-left:0">
					<input type="text" class="form-control input-sm" data-id="source_port2" validate="port,required">
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">目的端口</label>
				<div class="col-lg-3" style="width:31.7%;padding-right:0">
					<input type="text" class="form-control input-sm" data-id="purpose_port1" validate="port,required">
				</div>
				<div class="col-lg-1 p0" style="width:auto;padding:3px 5px">
					-
				</div>
				<div class="col-lg-3" style="width:31.7%;padding-left:0">
					<input type="text" class="form-control input-sm" data-id="purpose_port2" validate="port,required">
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label">协议</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-type="select" data-id="protocol">
						<option value="6">TCP</option>
						<option value="17">UDP</option>
					</select>
				</div>
			</div>
			<div class="form-group" style="display: none;">
				<label class="col-lg-3 control-label">备注</label>
				<div class="col-lg-8">
					<textarea class="form-control input-sm" data-id="comment"></textarea>
				</div>
			</div>
		</form>
	</div>
</div>
</tem>